package com.rerun.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.rerun.entity.CollectionJob;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * The interface Collection job mapper.
 *
 * @author dax.
 * @version v1.0
 * @since 2017 /10/26 9:29
 */
public interface CollectionJobMapper extends BaseMapper<CollectionJob> {
    /**
     * 通过职位id查询 收藏信息.
     *
     * @param jobId    the job id
     * @param memberId the member id
     * @return the collection job
     */
    CollectionJob selectByJobId(@Param("jobId") String jobId, @Param("memberId") String memberId);

    /**
     * 收藏职位列表.
     *
     * @param pagination the pagination
     * @param memberId   the member id
     * @return the list
     */
    List<String> findPageByMemberId(Pagination pagination, @Param("memberId") String memberId);
}
